<MudButtonGroup Variant="Variant.Filled" OverrideStyles="false" Class="mud-full-width">
    @if(!_isStopVisible && !_isAbortVisible)
    {
    <MudButton Color="Color.Secondary" Variant="Variant.Filled" Class="w50" OnClick="@OnSingleRunClicked" Disabled="@_areButtonsDisabled">
        @if (_isButtonLoading)
        {
            <MudProgressCircular Class="ms-n1" Size="Size.Small" Indeterminate="true"/>
        }
        <MudIcon Icon="@Icons.Material.Filled.PlayArrow" />
        <span>Single</span>
    </MudButton>
    <MudButton Color="Color.Primary" Variant="Variant.Filled" Class="w50" OnClick="@OnContinuousRunClicked" Disabled="@_areButtonsDisabled">
        @if (_isButtonLoading)
        {
            <MudProgressCircular Class="ms-n1" Size="Size.Small" Indeterminate="true"/>
        }
        <MudIcon Icon="@Icons.Material.Filled.PlayCircle" />
        <span>Continuous</span>
    </MudButton>
    }
    @if(_isStopVisible)
    {
    <MudButton Color="Color.Warning" Variant="Variant.Filled" Class="@StopClass" OnClick="@OnStopClicked" Disabled="@_areButtonsDisabled">
        @if (_isButtonLoading)
        {
            <MudProgressCircular Class="ms-n1" Size="Size.Small" Indeterminate="true"/>
        }
        <MudIcon Icon="@Icons.Material.Filled.Stop" />
        <span>Stop</span>
    </MudButton>
    }
    @if(_isAbortVisible)
    {
    <MudButton Color="Color.Error" Variant="Variant.Filled" Class="mud-full-width" OnClick="@OnAbortClicked" Disabled="@_areButtonsDisabled">
        @if (_isButtonLoading)
        {
            <MudProgressCircular Class="ms-n1" Size="Size.Small" Indeterminate="true"/>
        }
        <MudIcon Icon="@Icons.Material.Filled.StopCircle" />
        <span>Abort</span>
    </MudButton>
    }
</MudButtonGroup>
